Platform Explorer / Nuxeo Platform 6.0

Component org.nuxeo.drive.adapters.hierarchy.userworkspace

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.drive.adapters.hierarchy.userworkspace"
  version="1.0">

  <require>org.nuxeo.drive.adapters</require>

  <extension target="org.nuxeo.drive.service.FileSystemItemAdapterService"
    point="topLevelFolderItemFactory">
    <topLevelFolderItemFactory
      class="org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceTopLevelFactory">
      <parameters>
        <parameter name="folderName">Nuxeo Drive</parameter>
        <parameter name="syncRootParentFactory">userWorkspaceSyncRootParentFactory
        </parameter>
      </parameters>
    </topLevelFolderItemFactory>
  </extension>

  <extension target="org.nuxeo.drive.service.FileSystemItemAdapterService"
    point="fileSystemItemFactory">

    <!-- Synchronization root parent factory: order before the "userWorkspaceSyncRootFactory" 
      that has an order of 40 and before the "defaultFileSystemItemFactory" that 
      has an order of 50 -->
    <fileSystemItemFactory name="userWorkspaceSyncRootParentFactory"
      order="30"
      class="org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceSyncRootParentFactory">
      <parameters>
        <parameter name="folderName">My synchronized folders</parameter>
      </parameters>
    </fileSystemItemFactory>

    <!-- Synchronization root factory: order before the "defaultFileSystemItemFactory" 
      that has an order of 50 -->
    <fileSystemItemFactory name="userWorkspaceSyncRootFactory"
      order="40" facet="DriveSynchronized"
      class="org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceSyncRootFactory">
      <parameters>
        <parameter name="syncRootParentFactory">userWorkspaceSyncRootParentFactory
        </parameter>
      </parameters>
    </fileSystemItemFactory>

  </extension>

</component>